package org.doc.noliferadio.stuff;

import java.awt.Component;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.ListCellRenderer;

public class Rend extends JLabel implements ListCellRenderer {

    public Rend() {
    }

    @Override
    public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
        setText(value.toString());
        setFont(new Font(value.toString(), Font.PLAIN, 14));
        return this;
    }
}
